package cn.com.sbell.vss.ems.dao;

import java.util.List;
import java.util.Map;

import cn.com.sbell.vss.ems.entity.User;
import cn.com.sbell.vss.ems.entity.UserRole;

public interface IUserDao {
    String insert(User user, UserRole[] userRoles);

    void update(User user, UserRole[] userRoles,boolean editRole);

    void delete(String pk);

    void delete(Map paraMap);

    List find(Map param);

    User find(String pk);

    List findEx(Map param);

    User findByName(String name);
		User findByUserNumber(String userNumber);
    int countUser(Map param);
		/**
		 * whether userNumber of user is not in between userNumberFrom and userNumberTo
		 * @param userNumberFrom String
		 * @param userNumberTo String
		 * @return boolean
		 */
		boolean isUserNumberInBetweenFromAndTo(String userNumberFrom,
																					 String userNumberTo,
																					 String organizationId);
}
